package com.hz.service;

import com.hz.dao.ThreeDao;
import com.hz.pojo.Three;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ThressService {
    @Autowired
    private ThreeDao server;

    public List<Three> listall() {
        List<Three> res = server.listall();
        if (res != null) {
            return res;
        } else {
            return null;
        }
    }
}
